package io.renren.modules.app.form;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.renren.common.validator.group.AddOrderGroup;
import io.renren.common.validator.group.UpdateOrderGroup;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Auther zxl
 * @Date 2018/12/17 14:28
 * @Description
 **/
public class OrderForm {


    /**
     * 订单id
     */
    @NotBlank(message = "订单编号不能为空",groups = { UpdateOrderGroup.class})
    private String orderId;

    /**
     * 代理商编号
     */
    @NotNull(message = "代理商ID不能为空",groups = {AddOrderGroup.class})
    private Integer agentId;

    /**
     * 预约时间
     */
    @NotNull(message = "预约时间不能为空",groups = {AddOrderGroup.class})
//    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    /**
     * 燃油类型
     */
    @NotNull(message = "燃油类型不能为空",groups = {AddOrderGroup.class})
    private Integer fuelType;

    /**
     * 驱动类型
     */
    @NotNull(message = "驱动类型不能为空",groups = {AddOrderGroup.class})
    private Integer driverType;

    /**
     * 评分
     */
    private Integer orderScore;

    /**
     * 评语
     */
    private String orderAssess;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getOrderScore() {
        return orderScore;
    }

    public void setOrderScore(Integer orderScore) {
        this.orderScore = orderScore;
    }

    public String getOrderAssess() {
        return orderAssess;
    }

    public void setOrderAssess(String orderAssess) {
        this.orderAssess = orderAssess;
    }

    public Integer getAgentId() {
        return agentId;
    }

    public void setAgentId(Integer agentId) {
        this.agentId = agentId;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Integer getFuelType() {
        return fuelType;
    }

    public void setFuelType(Integer fuelType) {
        this.fuelType = fuelType;
    }

    public Integer getDriverType() {
        return driverType;
    }

    public void setDriverType(Integer driverType) {
        this.driverType = driverType;
    }
}
